package cn.iocoder.yudao.module.erp.controller.admin.purpurchaseorder.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - ERP 采购单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class PurPurchaseOrderPageReqVO extends PageParam {

    @Schema(description = "采购单编号-提交供应商采购单编号", example = "764")
    private String purchaseOrderId;

    @Schema(description = "一级库整合单编号", example = "8200")
    private String integrateId;

    @Schema(description = "是否主单")
    private Integer isMainOrder;

    @Schema(description = "主单编号", example = "17009")
    private String mainOrderId;

    @Schema(description = "采购时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] orderTime;

    @Schema(description = "供应商编号", example = "26165")
    private Long supplierId;

    @Schema(description = "合计价格", example = "29324")
    private BigDecimal totalPrice;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "订单完成状态")
    private Integer isFinished;

    @Schema(description = "流程实例的编号", example = "29753")
    private String processInstanceId;

    @Schema(description = "创建者")
    private String creator;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "订单整合编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17009")
    private String orderIntegrateId;

    @Schema(description = "订单整合编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "17009")
    private String printStatus;

}